// src/modules/auth/services/authApi.ts
import { apiClient } from '../../../services/apiClient';

// 登录API
export const loginApi = async (email: string, password: string) => {
  // 模拟API调用
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({
        token: 'sample-jwt-token',
        userId: 'user-123',
      });
    }, 1000);
  });
};

// 登出API
export const logoutApi = async () => {
  // 模拟API调用
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({ success: true });
    }, 500);
  });
};